package com.wicket.okrcomponent.web.contorller;

import cn.hutool.core.bean.BeanUtil;
import com.github.pagehelper.Page;
import com.github.pagehelper.page.PageMethod;
import com.wicket.okrcomponent.biz.service.DashboradStandardDataService;
import com.wicket.okrcomponent.biz.service.dto.req.*;
import com.wicket.okrcomponent.biz.service.dto.res.*;
import com.wicket.okrcomponent.common.ro.OkrResult;
import com.wicket.okrcomponent.common.util.CommonFunctionHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：
 * @date ：
 * 
 *
 * @version 1.0
 */
@RestController
@RequestMapping("/comp/dashboradStandardData/")
public class DashboradStandardDataController {

  @Autowired
  DashboradStandardDataService dashboradStandardDataService;
/**
   * D2生成大屏版本号(公共)
   */
    @PostMapping("generateDashboradVersionNumCom")
    public OkrResult<GenerateDashboradVersionNumComRespDto> generateDashboradVersionNumCom(@RequestBody @Validated GenerateDashboradVersionNumComReqDto reqDTO){
    return OkrResult.success(dashboradStandardDataService.generateDashboradVersionNumCom(reqDTO));
    }
/**
   * D2新增空间大屏版本（Redis）
   */
    @PostMapping("addSpaceDashboradVersionCom")
    public OkrResult<AddSpaceDashboradVersionComRespDto> addSpaceDashboradVersionCom(@RequestBody @Validated AddSpaceDashboradVersionComReqDto reqDTO){
    return OkrResult.success(dashboradStandardDataService.addSpaceDashboradVersionCom(reqDTO));
    }
/**
   * D2查询空间大屏版本（Redis）
   */
    @PostMapping("querySpaceDashboradVersionDetailCom")
    public OkrResult<QuerySpaceDashboradVersionDetailComRespDto> querySpaceDashboradVersionDetailCom(@RequestBody @Validated QuerySpaceDashboradVersionDetailComReqDto reqDTO){
    return OkrResult.success(dashboradStandardDataService.querySpaceDashboradVersionDetailCom(reqDTO));
    }
/**
   * D2修改空间大屏版本（Redis）
   */
    @PostMapping("updateSpaceDashboradVersionCom")
    public OkrResult<UpdateSpaceDashboradVersionComRespDto> updateSpaceDashboradVersionCom(@RequestBody @Validated UpdateSpaceDashboradVersionComReqDto reqDTO){
    return OkrResult.success(dashboradStandardDataService.updateSpaceDashboradVersionCom(reqDTO));
    }
/**
   * D2查询大屏名称及导航(公共)
   */
    @PostMapping("queryDashboardNameAndMenuDetailCom")
    public OkrResult<QueryDashboardNameAndMenuDetailComRespDto> queryDashboardNameAndMenuDetailCom(@RequestBody @Validated QueryDashboardNameAndMenuDetailComReqDto reqDTO){
    return OkrResult.success(dashboradStandardDataService.queryDashboardNameAndMenuDetailCom(reqDTO));
    }
/**
   * D2查询大屏二级导航列表(公共)
   */
    @PostMapping("queryDashboardTwoMenuListCom")
    public OkrResult<QueryDashboardTwoMenuListComRespDto> queryDashboardTwoMenuListCom(@RequestBody @Validated QueryDashboardTwoMenuListComReqDto reqDTO){
    return OkrResult.success(dashboradStandardDataService.queryDashboardTwoMenuListCom(reqDTO));
    }
/**
   * D2查询空间大屏配置参数(公共)
   */
    @PostMapping("querySpacDashboardConfVariableDetailCom")
    public OkrResult<QuerySpacDashboardConfVariableDetailComRespDto> querySpacDashboardConfVariableDetailCom(@RequestBody @Validated QuerySpacDashboardConfVariableDetailComReqDto reqDTO){
    return OkrResult.success(dashboradStandardDataService.querySpacDashboardConfVariableDetailCom(reqDTO));
    }
/**
   * D2更新目标规划大屏版本（Redis）(公共)
   */
    @PostMapping("refreshTargetPlanDashboradVersionCom")
    public OkrResult<RefreshTargetPlanDashboradVersionComRespDto> refreshTargetPlanDashboradVersionCom(@RequestBody @Validated RefreshTargetPlanDashboradVersionComReqDto reqDTO){
    return OkrResult.success(dashboradStandardDataService.refreshTargetPlanDashboradVersionCom(reqDTO));
    }
}
